events.listen('recipes', event => {
    const recipes = [
        {
            input : 'kubejs:polluted_dust',
            output : 'kubejs:polluted_dirt',
            icount : 9
        },
        {
            input : 'minecraft:iron_ingot',
            output : 'emendatusenigmatica:iron_plate', 
            icount : 2
        },
        {
            input : 'emendatusenigmatica:copper_ingot',
            output : 'emendatusenigmatica:copper_plate',
            icount : 2
        },
        {
            input : 'emendatusenigmatica:tin_ingot',
            output : 'emendatusenigmatica:tin_plate',
            icount : 2
        },
        {
            input : 'emendatusenigmatica:bronze_ingot',
            output : 'emendatusenigmatica:bronze_plate',
            icount : 2
        },
        {
            input : 'quark:dirty_glass',
            output : 'minecraft:sand',
            icount : 1
        },
        {
            input : 'emendatusenigmatica:brass_ingot',
            output : 'emendatusenigmatica:brass_plate',
            icount : 2
        },
        {
            input : 'emendatusenigmatica:invar_ingot',
            output : 'emendatusenigmatica:invar_plate',
            icount : 2
        },
        {
            input : 'emendatusenigmatica:steel_ingot',
            output : 'emendatusenigmatica:steel_plate',
            icount : 2
        },
        {
            input : 'emendatusenigmatica:constantan_ingot',
            output : 'emendatusenigmatica:constantan_plate',
            icount : 2
        },
        {
            input : 'minecraft:glass_bottle',
            output : 'tiab:timeinabottle',
            icount : 1
        },
        {
            input : 'minecraft:glass_bottle',
            output : 'tiab:timeinabottle',
            icount : 1
        },

        
    ];

    recipes.forEach((i)=> {
        event.custom({
            "type": "interactio:item_anvil_smashing",
            "inputs": [ //输入
                {
                    "item": i.input, 
                    "count": i.icount
                }
            ],
            "output": { //输出
                "entries": [
                    {
                        "result": {
                            "item": i.output 
                        },
                        "weight": 90 //几率
                    }
                ]
            },
            "damage": 0 //铁砧损坏程度
        });
    });


    
});
